import Vue from 'vue'
import Vuex from 'vuex'
// import creatLogger from 'vuex/dist/logger'

import UserInfo from './userInfo'
import MenuList from './menuList'
import BreadCrubms from './breadcrubms'
import AllArea from './allArea'
import ShopTypeList from './shopTypeList'
import roleList from './roleList'
import departList from './departList'
import BalanceSearch from './balanceSearch'
import AllBankList from './bankList'
import ProvCity from './provCity'
import AdsList from './adsList'
import ChannelList from './channelList'
import TempList from './tempList'
import StoreList from './storeList'

Vue.use(Vuex)
// const debug = process.env.NODE_ENV !== 'production'

export default new Vuex.Store({
  modules: {
    UserInfo,
    MenuList,
    BreadCrubms,
    AllArea,
    ShopTypeList,
    roleList,
    departList,
    BalanceSearch,
    AllBankList,
    ProvCity,
    AdsList,
    ChannelList,
    TempList,
    StoreList
  }
  // plugins: debug ? [creatLogger()] : []
})
